#include <raylib.h>

#include <algorithm>
#include <vector>

using namespace std;

vector<int> circles;
vector<int> circles_sorted;
int nums = 10;

int main(void) {
  InitWindow(1200, 800, "hello");

  for (size_t i = 0; i < nums; i++) {
    circles.emplace_back(rand() % 50 + 10);
  }
  circles_sorted.insert(circles_sorted.end(), circles.begin(), circles.end());
  std::sort(circles_sorted.begin(), circles_sorted.end());

  while (!WindowShouldClose()) {
    BeginDrawing();

    ClearBackground(GRAY);

    for (size_t i = 0; i < circles.size(); i++) {
      DrawCircle(50 + i * 120, 100, circles[i], GREEN);
    }
    for (size_t i = 0; i < circles_sorted.size(); i++) {
      DrawCircle(50 + i * 120, 250, circles_sorted[i], ORANGE);
    }

    EndDrawing();
  }

  CloseWindow();

  return 0;
}
